package ae.pcfc.etks.online.itworx.ehs.web.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_EHS_FNP_DETAIL")
@SequenceGenerator(name = "EHS_FNP_DETAIL_ID_SEQ", sequenceName = "EHS_FNP_DETAIL_ID_SEQ", initialValue = 1, allocationSize = 1)
public class FNPDetails extends AuditableEntity implements Serializable {

	@Id
	@Column(name = "EHS_FNP_DETAIL_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "EHS_FNP_DETAIL_ID_SEQ")
	private long id;
	@Column(name = "FEE")
	private float fees;
	@Column(name = "PAYMENT_NUMBER")
	private String paymentNumber;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public float getFees() {
		//BigDecimal formattedFees = new BigDecimal(this.fees);
		//return new DecimalFormat(GlobalConstants.FEES_FORMAT).format(formattedFees);
		return this.fees;
	}

	public void setFees(float fees) {
		this.fees = fees;
	}

	public String getPaymentNumber() {
		return paymentNumber;
	}

	public void setPaymentNumber(String paymentNumber) {
		this.paymentNumber = paymentNumber;
	}

}
